import { ISysAttendanceShift } from '/@/views/hr/sysattendanceshift/api/interface';

export interface ISysAttendanceSubsidyRule {
	ID?: string | null;
	Name: string | null;
	RuleType: '餐补' | '交通补贴' | '加班补贴' | '夜班补贴' | '节假日补贴' | '其他补贴';
	EffectiveStartDate: Date | null;
	EffectiveEndDate: Date | null;
	IsEnabled: boolean;
	Remark: string | null;
	AttendanceTimeConditionEnabled: boolean;
	MinAttendanceHours: string | null;
	CheckinTimeConditionEnabled: boolean;
	CheckinStartDayOffset: '当日' | '下一日' | '上一日';
	CheckinStartTime: string | null;
	CheckinEndDayOffset: '当日' | '下一日' | '上一日';
	CheckinEndTime: string | null;
	CheckoutTimeConditionEnabled: boolean;
	CheckoutStartDayOffset: '当日' | '下一日' | '上一日';
	CheckoutStartTime: string | null;
	CheckoutEndDayOffset: '当日' | '下一日' | '上一日';
	CheckoutEndTime: string | null;
	CalculationType: '固定金额' | '按公式计算';
	FixedAmount: string | null;
	CalculationFormula: string | null;
	MaxAmount: string | null;
	MinAmount: string | null;
	ShiftId: string | null;
	Shift?: ISysAttendanceShift;
}

export interface ISysAttendanceSubsidyRuleVm {
	Entity: ISysAttendanceSubsidyRule;
	ActionName?: string | null;
	IsMyApprove?: boolean | null;

}

export interface ISysAttendanceSubsidyRuleView extends ISysAttendanceSubsidyRule {

}

export interface ISysAttendanceSubsidyRuleQuery {
	Name?: string | null;
	IsEnabled?: boolean | null;
	ShiftId?: string | null;
}